/**   
 * 项目名：五位一体化工安全信息平台
 * 日期：    2019-12-24 09:42:14  
 * Copyright (c) 2015- joysuch-版权所有     
 */
package com.joysuch.wwyt.bp.service;

import com.joysuch.wwyt.bp.bean.BpTaskListDetailBean;
import com.joysuch.wwyt.bp.bean.BpTaskListEditBean;
import com.joysuch.wwyt.bp.bean.BpTaskListListBean;
import com.joysuch.wwyt.bp.entity.BpTaskList;
import com.joysuch.wwyt.core.exception.BusinessRestrictionsException;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

import static com.joysuch.wwyt.bp.bean.BpTaskListListBean.Search;

public interface BpTaskListService {

    public BpTaskList add(BpTaskListEditBean entity) throws Exception;

    void update(BpTaskListEditBean entity) throws Exception;

    Page<BpTaskListListBean> findByPage(Pageable page, Search condition);
    
    void delete(Long id) throws BusinessRestrictionsException;

    BpTaskListDetailBean getById(Long id);

    BpTaskList getByIds(Long id);

    List<BpTaskList> findById(Long id);
}
